package com.hytc.mymall.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.hytc.mymall.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/12/8.
 */

public class ConsumptionSeriesAdapter extends BaseAdapter {
    Context context;

    public ConsumptionSeriesAdapter(Context context) {
        this.context = context;
    }

    @Override
    public int getCount() {
        return 3;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View view, ViewGroup parent) {
        view = View.inflate(context, R.layout.item_consumptionseries, null);
        return view;
    }

    static class ViewHolder {
        @BindView(R.id.tv_item_consumptionseries_date)
        TextView tvItemConsumptionseriesDate;
        @BindView(R.id.iv_consumptionseries_dirtype)
        ImageView ivConsumptionseriesDirtype;
        @BindView(R.id.tv_item_consumptionseries_money)
        TextView tvItemConsumptionseriesMoney;
        @BindView(R.id.tv_item_consumptionseries_total)
        TextView tvItemConsumptionseriesTotal;
        @BindView(R.id.tv_item_consumptionseries_beans)
        TextView tvItemConsumptionseriesBeans;

        ViewHolder(View view) {
            ButterKnife.bind(this, view);
        }
    }
}
